package com.dkm.orproject.dkmoa.dao;

import com.dkm.orproject.dkmoa.domain.OaTravelBusinessFlow;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 *  @ClassName : OaTravelBusinessFlowMapper  差旅详情Mapper类
 *  @Description : 差旅详情类dao层操作数据库实体类
 *  @Author : zmh //作者
 *  @Date: 2021-1-20 16:28  //时间
 */
@Mapper
public interface OaTravelBusinessFlowMapper {
    /**
     * 根据id删除
     * @param pkTravelBusinessFlowId 差旅详情ID
     */
    int deleteByPrimaryKey(Long pkTravelBusinessFlowId);
    /**
     * 插入差旅详情数据
     * @param oaTravelBusinessFlow 客户对象
     */
    int insertSelective(OaTravelBusinessFlow oaTravelBusinessFlow);

    /**
     * 根据id查询差旅详情
     * @param pkTravelBusinessId id值
     */
    OaTravelBusinessFlow selectByPrimaryKey(Long pkTravelBusinessId);

    /**
     * 修改差旅详情
     * @param oaTravelBusinessFlow 差旅详情模型对象
     */
    int updateByPrimaryKeySelective(OaTravelBusinessFlow oaTravelBusinessFlow);

    Long rowCount(@Param("oaTravelBusinessFlow") OaTravelBusinessFlow oaTravelBusinessFlow, @Param("startTime") String startTime, @Param("endTime") String endTime);

    int deleteAll(List<Long>ids);

    List<OaTravelBusinessFlow> findAll(@Param("oaTravelBusinessFlow") OaTravelBusinessFlow oaTravelBusinessFlow, @Param("startTime") String startTime, @Param("endTime") String endTime);

    List<OaTravelBusinessFlow> selectAll(List<Long> list);
}